package com.cz.fra.service;

import java.util.List;

import javax.servlet.ServletException;

import com.cz.fra.entity.Filter;
import com.cz.fra.entity.Report;

public interface ReportService {

	/**
	 * 
	 * @param report
	 * @param location
	 * @param bait
	 * @param species
	 * @param img
	 * @return
	 * @throws ServletException
	 */
	public String addReport(Report report, List<String> img) throws ServletException;
	
	/**
	 * 
	 * @return
	 * @throws ServletException
	 */
	public List<Report> getReportList() throws ServletException;
	
	/**
	 * 
	 * @param filter
	 * @return
	 * @throws ServletException
	 */
	public List<Report> getReportListByFilter(Filter filter) throws ServletException;
	
	/**
	 * 
	 * @param reportId
	 * @return
	 * @throws ServletException
	 */
	public Report getReportByID(int reportId) throws ServletException;

	/**
	 * 
	 * @param reportId
	 */
	public void incrementCommentNum(int reportId) throws ServletException;
}
